package com.shangguosha.core.event;

import com.shangguosha.model.Character;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 角色相关事件
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class CharacterEvent extends GameEvent {
    private Character character;
    private Object data;
    
    public CharacterEvent(String eventType, Object source, Character character) {
        super(eventType, source);
        this.character = character;
    }
    
    public CharacterEvent(String eventType, Object source, Character character, Object data) {
        super(eventType, source);
        this.character = character;
        this.data = data;
    }
}